package com.lingxu.module.risk.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lingxu.base.common.api.vo.Result;
import com.lingxu.module.database.entity.TModel;
import com.lingxu.module.risk.entity.ModelRunQueryParams;
import com.lingxu.module.risk.entity.ModelRunVo;
import com.lingxu.module.risk.vo.JsonFieldsVo;

import java.util.List;
import java.util.Map;

public interface RiskService {
    /**
     * 查询模型运行列表
     */
    List<ModelRunVo> queryModelRunList(ModelRunQueryParams query);
    /**
     * 根据模型id查询问题分组
     */
    Result queryProblemGroupByModelId(String modelId, Integer pageNum, Integer pageSize,String keyword);

    Result getDetils(JsonFieldsVo vo);


    int chackIsIssue(String originalTableName, Map<String, Object> groupFields, int isIssue);

    Result problemGroupChack(String modelId, Integer pageNum, Integer pageSize,String isDeal,String keyword);

    Result notComplete(String modelId, Integer pageNum, Integer pageSize, String keyword);

    Page<Map<String, Object>> getModelChack(Integer pageNum, Integer pageSize, String name, String topCategory, String secondCategory);

    Page<TModel> getModel(Integer pageNum, Integer pageSize, String name, String topcategory, String secondcategory);

    Page<TModel> getModel(String name, String topcategory, String secondcategory, String projectName, String companyName);

    Result updateWorkKeyById(TModel tModel);

    Result<Integer> updateIsSupervise(JsonFieldsVo vo);

    Result alreadySupervise(String modelId, Integer pageNum, Integer pageSize, String keyword);
}
